package com.fang.mapper;

import com.fang.pojo.Place;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface PlaceMapper extends BaseMapper<Place, Integer> {

    List<Place> findByProviceIdPage(@Param("start") Integer start, @Param("rows") Integer rows, @Param("proviceId") Integer proviceId);

    Integer findByProviceIdCounts(Integer proviceId);

}
